﻿<controls:ChildWindow x:Class="LEEAAttendanceControl.Views.EmployeeDetails"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="580" Height="470" 
           Title="Employee Details">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid Margin="0,10,0,10" HorizontalAlignment="Center" Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <sdk:Label Content="ID:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Margin="3"
                               VerticalAlignment="Center"/>
            <TextBox x:Name="CodeBox" Width="150" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Background="#FFD4E515" Text="{Binding EmployeeCode}"/>

            <sdk:Label Content="Birth Date:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3,25,3,3" VerticalAlignment="Center"/>
            <TextBox x:Name="BirthBox" Width="150" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3,25,3,3" Text="{Binding BirthDate, StringFormat='dd/MM/yyyy'}"/>

            <sdk:Label Content="First Name:" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="FirstBox" Width="150" Grid.Row="2" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding FirstName}"/>

            <sdk:Label Content="Last Name:" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="LastBox" Width="150" Grid.Row="2" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding LastName}"/>
        </Grid>

        <Grid Margin="0,20,0,10" HorizontalAlignment="Center" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <sdk:Label Content="Hire Date:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="HireBox" Width="150" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding EmploymentDate, StringFormat='dd/MM/yyyy'}"/>

            <sdk:Label Content="Department:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="DepartmentBox" Width="150" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Department.DepartmentID}"/>

            <sdk:Label Content="Company:" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="CompanyBox" Width="150" Grid.Row="1" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Company.CompanyName}"/>
        </Grid>

        <Grid Margin="0,10,0,10" HorizontalAlignment="Center" Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <sdk:Label Content="Address:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="AddressBox" Width="150" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Address}"/>

            <sdk:Label Content="Phone:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="PhoneBox" Width="150" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Phone}"/>

            <sdk:Label Content="Mobile:" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="MobileBox" Width="150" Grid.Row="1" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Mobile}"/>
        </Grid>

        <Grid Margin="0,10,0,10" HorizontalAlignment="Center" Grid.Row="3">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <sdk:Label Content="Login" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="LoginBox" Width="150" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Login}"/>

            <sdk:Label Content="Password:" Grid.Row="0" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
            <TextBox x:Name="PasswordBox" Width="150" Grid.Row="0" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Password}"/>

            <sdk:Label Content="Active" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3,20,3,3" VerticalAlignment="Center"/>
            <CheckBox x:Name="ActiveCheck" Grid.Row="1" Grid.Column="1" IsEnabled="False" Margin="3,20,3,3"
                              IsThreeState="False" HorizontalAlignment="Left" IsChecked="{Binding Active}"/>
        </Grid>

        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right"
                Margin="0,10,15,0" Grid.Row="4" />
    </Grid>
</controls:ChildWindow>